cmake_minimum_required(VERSION 3.15)
project(eds_py)

set(CMAKE_CXX_STANDARD 17)

include_directories(.)
include_directories(include
        ../tidp/include
        ../eds_common/include)
link_directories(../eds_common/lib
        /usr/local/lib)

find_package(Poco CONFIG REQUIRED COMPONENTS Foundation Util Net XML Zip JSON)
find_package(RdKafka CONFIG REQUIRED)

add_executable(eds_zk
        src/Mesh.cpp
        src/Udp.cpp
        HttpServer.cpp
        KafkaServer.cpp
        main.cpp
        PointData.cpp)

target_link_libraries(eds_zk PRIVATE
        eds_common
        RdKafka::rdkafka RdKafka::rdkafka++
        Poco::Foundation Poco::Util Poco::Net Poco::XML Poco::Zip
        tidp
        pthread)